package com.changpay.zywy.adapter

import android.content.Context
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.changpay.zywy.R
import com.changpay.zywy.bean.LoanInfoBean

/**
 * Created by chenxz on 2018/4/22.
 */
class LoanInfoAdapter(private val context: Context?, datas: MutableList<LoanInfoBean>) :
    BaseQuickAdapter<LoanInfoBean, BaseViewHolder>(R.layout.item_loan_bean, datas) {

    override fun convert(helper: BaseViewHolder?, item: LoanInfoBean?) {
        item ?: return
        helper ?: return
        helper.setText(R.id.tv_name,item.title).setText(R.id.tv_produce,item.goods_name).setText(R.id.tv_time,item.created_time)
    }

}
